/*    */ package com.qmsk.business.manage.funcOper.controller;
/*    */ 
/*    */ import com.qmsk.business.manage.funcOper.dao.FunOperDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.sql.SQLException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/funOper"})
/*    */ public class FunOperController
/*    */ {
/* 24 */   private static final Logger logger = Logger.getLogger(FunOperController.class);
/*    */ 
/*    */   @Autowired
/*    */   private FunOperDAO dao;
/*    */ 
/*    */   @RequestMapping(value={"find/shopId/{shopId}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListOfShopId(HttpServletRequest request, HttpServletResponse response, @PathVariable("funId") String funId)
/*    */   {
/*    */     try {
/* 33 */       GsonEbRst gsonEbRst = this.dao.getGsonOfAll();
/* 34 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 36 */       logger.error(e);
/* 37 */       ResponseUtils.setErrorMsgResponse(
/* 38 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ 
/*    */   @RequestMapping(value={"find/shopId/{shopId}/funId/{funId}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListOfFunId(HttpServletRequest request, HttpServletResponse response, @PathVariable("funId") String funId)
/*    */   {
/*    */     try {
/* 46 */       GsonEbRst gsonEbRst = this.dao.getGsonOfFunId(funId);
/* 47 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 49 */       logger.error(e);
/* 50 */       ResponseUtils.setErrorMsgResponse(
/* 51 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.manage.funcOper.controller.FunOperController
 * JD-Core Version:    0.5.3
 */